// 病假申请
import {LEAVE_DETAILS,LEAVE_PROPERTY,LEAVE_SEX,STUDENT_IDE} from '@/const/Leave'
export const tableOption = {
    border: true,  //竖线边框
    index: true,  //表格序号
    indexLabel: '序号',  //序号的标题
    stripe: true,  //是否显示表格的斑马条纹
    menuAlign: 'center',  //菜单栏对齐方式
    menuWidth: 120,  //操作菜单栏的宽度
    align: 'center',  //表格列对其方式
    emptyBtnText:'重置', //清空按钮文案
    searchMenuSpan: 4,  //搜索及清空等操作按钮一栏长度
    searchSpan: 5,  //搜索框长度
    addBtn: false,  //添加按钮
    delBtn:false,  //行内删除按钮
    editBtn: false,  //行内编辑按钮
    viewBtn: false,  //是否显示查看按钮
    selection: false,  //表格是否显示可选
    excelBtn: false,  //表格导出按钮是否显示
    refreshBtn: true,  //表格上面小的 刷新按钮
    columnBtn: false,  //表格上面小的 列表显隐按钮
    searchBtn: true,  //搜索按钮
    // menu:true,  //是否显示操作栏
    menuType: 'button',//操作栏样式为按钮
    searchLabelWidth: 100,  //搜索框前标题宽度
    labelWidth:'30%',  //行内查看弹窗的标题宽度
    props: {
        label: 'label',
        value: 'value'
    },
    column: [
        {
            label: '人员id',  //字段标题
            prop: 'id',  //字段名称
            search: false,  //搜索是否显示
            hide: true,  //展示页面是否显示
            viewDisplay: false,  //详情时是否显示
        },
        {
            label: '姓名',
            prop: 'personName',
            search: true,
            dicData: LEAVE_DETAILS,  //引入字典
        }, {
            label: '学号',
            prop: 'number',
            search: false,
            dicData: LEAVE_DETAILS,
        }, {
            label: '性别',
            prop: 'sex',
            search: true,
            type: 'select',  //搜索框显示类型
            dicData: LEAVE_SEX,
        }, {
            label: '年级',
            prop: 'parentName',
            search: false,
            type: 'select',
            dicData: LEAVE_DETAILS,
        }, {
            label: '班级',
            prop: 'deptName',
            search: false,
            type: 'select',
            dicData: LEAVE_DETAILS,
        }, {
            label: '学生属性',
            prop: 'identityKey',
            search: true,
            type: 'select',
            dicData: STUDENT_IDE,
        }, {
            label: '楼栋',
            prop: 'buildingName',
            search: false,
            type: 'select',
            dicData: LEAVE_DETAILS,
        },{
            label: '宿舍号',
            prop: 'dormName',
            search: false,
            type: 'select',
            dicData: LEAVE_DETAILS,
        },{
            label: '家长联系电话',
            prop: 'phone',
            viewDisplay: true,
            search: false,
            dicData: LEAVE_DETAILS,
        },{
            label: '状态',
            prop: 'property',
            viewDisplay: true,
            search: true,
            slot:true,  //加tag标签
            type: 'select',
            dicData: LEAVE_PROPERTY,
        },{
            label: '信息修改时间',
            prop: 'updateTime',
            type: 'datetime',
            format: 'yyyy-MM-dd HH:mm',
            valueFormat: 'yyyy-MM-dd HH:mm:ss',
            viewDisplay: false,
            search: false,
            dicData: LEAVE_DETAILS,
        }, {
            label: '年级/班级',
            prop: 'deptId',
            search: true,
            filter: false,
            type: 'tree',
            hide: true,
            dicUrl: '/campus/sysdept/detpTree/1/2,3',
            dicMethod: 'get',
            props: {
                label: 'name',
                value: 'deptId'
            },
        },


    ]
}
